package timbap.visualizer.api.exceptions;

import timbap.visualizer.api.plugin.Plugin;

public class PluginTypeMismatchException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	public PluginTypeMismatchException(Plugin pPlugin, Class pExpectedInterface) {

		super("Plugin " + pPlugin.getClass().getSimpleName()
                + " is not of type " + pExpectedInterface.getName() + "."
                + " It must implement the corresponding interface.");
	}

}